package com.ls.controller.orderrecord.model;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;

/**
 * 统计会员充值趋势
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class RechargeDataModel {
    // 月份
    private String name;
    //充值人数
    private Long count;
    //充值金额
    private BigDecimal amount;
    public void addCountAndAmount(Long count, BigDecimal amount) {
        this.count += count;
        this.amount =this.amount.add(amount);
    }
}
